﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Updater;
using System.Text.RegularExpressions;
using System.IO;
using System.Drawing;

namespace FreeBroker
{
    static class Program
    {
        /// <summary>
        ///     The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {

            //Image img = new Communication().requestImage("http://charts.comdirect.de/charts/large.chart?WIDTH=632&HEIGHT=614&TYPE=CONNECTLINE&TIME_SPAN=6M&TO=1277904307&AXIS_SCALE=lin&DATA_SCALE=abs&LNOTATIONS=1538707&LCOLORS=000000&IND0=VOLUME&AVGTYPE=simple&WITH_EARNINGS=1&SHOWHL=1", "http://www.comdirect.de/inf/aktien/detail/chart_big.html");
            //Console.WriteLine(img.PixelFormat);

            //info.Build = "19102008"; // previous: 19102008
            //info.ModuleName = "freebroker";
            //info.EscapedAppName = "Free_Broker";
            //info.UpdateLocation = "http://teachersplanner.sourceforge.net";
            //info.Version = "101";
            //info.AddComment("improved updater (supports ZIP files now)");
            //info.AddComment("performance tuned (main frame loads small images only)");
            //info.AddComment("main window thread queue implemented");
            //info.AddComment("all ComDirect options enabled");
            //info.AddComment("lines have now better initial position");
            //info.AddComment("lines are now deletable");
            //info.AddComment("detail window is now resizable");
            //new UpdateStarter().CreatePublishInfo(info);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new BrokerMainForm());
        }

        public static ProgramInfo info = new ProgramInfo();
    }
}
